@extends('layouts.admin')

@section('title', '其他设置')

@section('nav', '其他设置')

@section('content')
    <form class="form-inline" enctype="multipart/form-data" action="{{ url('admin/config/update')}}" method="post">
        {{ csrf_field() }}
        <table class="table table-striped table-bordered table-hover">
        
            <tr>
                <th>时区</th>
                <td>
                    <input class="form-control" type="text" name="195" value="{{  $config['app.timezone']}}" >
                </td>
            </tr>
            <tr>
                <th>logo样式：</th>
                <td>
                    带php标签 <input class="bjy-icheck" type="radio" name="171" value="true" @if($config['bjyblog.logo_with_php_tag']) checked @endif > &emsp;&emsp;
                    文字<input class="bjy-icheck" type="radio" name="171" value="false" @if($config['bjyblog.logo_with_php_tag']) checked @endif>
                </td>
            </tr>
            @if($config['app.locale']=== 'zh-CN')
                <tr>
                    <th>ICP</th>
                    <td>
                        <input class="form-control" type="text" name="117" value="{{  $config['bjyblog.icp'] }}" >
                    </td>
                </tr>
            @endif
            <tr>
                <th>默认作者</th>
                <td>
                    <input class="form-control" type="text" name="125" value="{{  $config['bjyblog.author']}}" >
                </td>
            </tr>
            <tr>
                <th>版权</th>
                <td>
                    <textarea class="form-control" name="119" rows="5" placeholder="">{{  $config['bjyblog.copyright_word'] }}</textarea>
                </td>
            </tr>
            <tr>
                <th>图片title和alt内容</th>
                <td>
                    <input class="form-control" type="text" name="141" value="{{  $config['bjyblog.alt_word']}}" >
                </td>
            </tr>
            <tr>
                <th>水印文字</th>
                <td>
                    <input class="form-control" type="text" name="107" value="{{  $config['bjyblog.water.text'] }}" >
                </td>
            </tr>
            <tr>
                <th>水印颜色</th>
                <td>
                    <input class="form-control" type="text" name="110" value="{{  $config['bjyblog.water.color'] }}" >
                </td>
            </tr>
            @if($config['app.locale'] === 'zh-CN')
                <tr>
                    <th>百度推送</th>
                    <td>
                        <input class="form-control" type="text" name="128" value="{{  $config['bjyblog.baidu_site_url'] }}" >
                    </td>
                </tr>
            @endif
            <tr>
                <th>统计代码</th>
                <td>
                    <textarea class="form-control" name="123" rows="5" placeholder="">{{  $config['bjyblog.statistics'] }}</textarea>
                </td>
            </tr>
            <tr>
                <th>联系邮箱</th>
                <td>
                    <input class="form-control" type="text" name="118" value="{{  $config['bjyblog.admin_email'] }}" >
                </td>
            </tr>
            <tr>
                <th>接受信息邮箱</th>
                <td>
                    <input class="form-control" type="text" name="148" value="{{  $config['bjyblog.notification_email'] }}" >
                </td>
            </tr>
            <tr>
                <th>Sentry DSN：</th>
                <td>
                    <input class="form-control" type="text" name="158" value="{{  $config['sentry.dsn'] }}" >
                </td>
            </tr>
            <tr>
                <th>CDN 网址：</th>
                <td>
                    <input class="form-control" type="text" name="172" value="{{  $config['bjyblog.cdn_domain'] }}" >
                </td>
            </tr>
            <tr>
                <th>Cookie Domain：</th>
                <td>
                    <input class="form-control" type="text" name="185" value="{{  $config['session.domain'] }}" >
                </td>
            </tr>
            <tr>
                <th>链接打开方式：</th>
                <td>
                    跳转新页面 <input class="bjy-icheck" type="radio" name="193" value="_blank" @if($config['bjyblog.link_target'] === '_blank') checked @endif> &emsp;&emsp;
                    当前页面 <input class="bjy-icheck" type="radio" name="193" value="_self" @if($config['bjyblog.link_target'] === '_self') checked @endif>
                </td>
            </tr>
            <tr>
                <th>面包屑：</th>
                <td>
                    {{ ('Yes') }} <input class="bjy-icheck" type="radio" name="194" value="true" @if($config['bjyblog.breadcrumb']) checked @endif> &emsp;&emsp;
                    {{ ('No') }} <input class="bjy-icheck" type="radio" name="194" value="false" @if($config['bjyblog.breadcrumb']) checked @endif>
                </td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <input class="btn btn-success" type="submit" value="提交">
                </td>
            </tr>
        </table>
    </form>
@endsection
